<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Untitled Document</title>
	<link rel="stylesheet" type="text/css" href="css/main.css" />
	<link rel="stylesheet" type="text/css" href="css/meniu.css" />
	<link rel="stylesheet" type="text/css" href="css/style.css" />

</h:head>
<h:body>
	<ui:include src="header.xhtml" />
	<h:panelGroup layout="block" id="content">
		<ui:include src="leftMenu.xhtml" />
		<h:panelGroup layout="block" id="contenRight">
			<h:panelGroup layout="block" id="header" style="margin-top: 20px;">
				<ul>
					<li id="selected"><a>Group Create</a></li>
				</ul>
			</h:panelGroup>
			<h:panelGroup layout="block" id="contentTab">
				<h:form>
					<h:panelGrid columns="2">
						<h:commandButton action="#{manageGroupsBean.back}" immediate="true"
							style="width:50px; height:30px;"
							image="resources/img/back-button.png" styleClass="butoaneAddBook" />
						<h:outputText value=" "></h:outputText>
						<h:outputText value="Group name: " />
						<h:outputText value="#{manageGroupsBean.emailGroupDTO.name}" />
						<h:outputText value="Select user: " />
						<h:selectOneMenu value="#{manageGroupsBean.idUser}">
							<f:selectItems value="#{manageGroupsBean.userDTOList}" var="user"
								itemLabel="#{user.firstname} #{user.lastname}"
								itemValue="#{user.id}" />
						</h:selectOneMenu>
						<h:commandButton value="Add user"
							action="#{manageGroupsBean.addUser}" styleClass="butoaneAddBook" />
					</h:panelGrid>
					<h:outputText value="All users has been added to this group!"
						rendered="#{manageGroupsBean.error}" styleClass="inputError" />
				</h:form>
			</h:panelGroup>
		</h:panelGroup>
	</h:panelGroup>
</h:body>
</html>